package com.qingge.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 尹茂金
 * @since 2022-05-11
 */
@Getter
@Setter
  @TableName("shopping_cart")
@ApiModel(value = "ShoppingCart对象", description = "")
public class ShoppingCart implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String userName;

    private Integer userId;

    @ApiModelProperty("商品名称")
    private String merchandiseName;

    @ApiModelProperty("商品规格（默认是长宽高）")
    private String specification;

    @ApiModelProperty("购买数量")
    private Integer quantity;

    @ApiModelProperty("商品价格，默认为0元，是double类型")
    private Double price;


}
